/*
 * Copyright
 *
 */
package com.fare.taluo.util;

import java.util.Map;

/**
 * 【请在此写上此类功能描述文字】
 * 
 * @version
 * @author fangdongyang 2013-1-31 下午7:45:12
 * 
 */
public class ChartDataUtil {

	public static String getChartData(Map<String, String> priceMap) {
		String chartdata = "[";
		for (String key : priceMap.keySet()) {
			chartdata += "[" + key + ", " + priceMap.get(key) + "],";
		}
		if (chartdata.endsWith(","))
			chartdata = chartdata.substring(0, chartdata.length() - 1);
		chartdata += "]";
		return chartdata;
	}

}
